'''
fuction : 工具集
author  : 辛天宇
data    : 2024-4-14
-------------------------------
author data  modify

'''
import global_var
import PySimpleGUI as sg

# name 对齐函数
def name(name):
    dots = global_var.NAME_SIZE-len(name)-2
    return sg.Text(name + ' ' + '•'*dots, size=(global_var.NAME_SIZE,1), justification='r',pad=(0,0), font='Courier 10')
# 添加*函数
def add_stars_to_string(s, n):  
    return '*'*n + s + '*'*n  